//import './assets/main.css'
import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn"; //组件
import axios from "axios"; //请求
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; //pinia持久化
axios.defaults.baseURL = "http://localhost:5297"; //默认接口
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn
});
app.use(pinia);
app.use(router);
app.mount("#app");